﻿using System;
using UnityEngine;
using LuaInterface;
using Object = UnityEngine.Object;

public class LuaMonoBehaviourWrap
{
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("New", _CreateLuaMonoBehaviour),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("StartProxy", get_StartProxy, set_StartProxy),
			new LuaField("AwakeProxy", get_AwakeProxy, set_AwakeProxy),
			new LuaField("UpdateProxy", get_UpdateProxy, set_UpdateProxy),
			new LuaField("LateUpdateProxy", get_LateUpdateProxy, set_LateUpdateProxy),
			new LuaField("FixedUpdateProxy", get_FixedUpdateProxy, set_FixedUpdateProxy),
			new LuaField("ResetProxy", get_ResetProxy, set_ResetProxy),
			new LuaField("OnMouseEnterProxy", get_OnMouseEnterProxy, set_OnMouseEnterProxy),
			new LuaField("OnMouseOverProxy", get_OnMouseOverProxy, set_OnMouseOverProxy),
			new LuaField("OnMouseExitProxy", get_OnMouseExitProxy, set_OnMouseExitProxy),
			new LuaField("OnMouseDownProxy", get_OnMouseDownProxy, set_OnMouseDownProxy),
			new LuaField("OnMouseUpProxy", get_OnMouseUpProxy, set_OnMouseUpProxy),
			new LuaField("OnMouseUpAsButtonProxy", get_OnMouseUpAsButtonProxy, set_OnMouseUpAsButtonProxy),
			new LuaField("OnMouseDragProxy", get_OnMouseDragProxy, set_OnMouseDragProxy),
			new LuaField("OnTriggerEnterProxy", get_OnTriggerEnterProxy, set_OnTriggerEnterProxy),
			new LuaField("OnTriggerExitProxy", get_OnTriggerExitProxy, set_OnTriggerExitProxy),
			new LuaField("OnTriggerStayProxy", get_OnTriggerStayProxy, set_OnTriggerStayProxy),
			new LuaField("OnCollisionEnterProxy", get_OnCollisionEnterProxy, set_OnCollisionEnterProxy),
			new LuaField("OnCollisionExitProxy", get_OnCollisionExitProxy, set_OnCollisionExitProxy),
			new LuaField("OnCollisionStayProxy", get_OnCollisionStayProxy, set_OnCollisionStayProxy),
			new LuaField("OnControllerColliderHitProxy", get_OnControllerColliderHitProxy, set_OnControllerColliderHitProxy),
			new LuaField("OnJointBreakProxy", get_OnJointBreakProxy, set_OnJointBreakProxy),
			new LuaField("OnParticleCollisionProxy", get_OnParticleCollisionProxy, set_OnParticleCollisionProxy),
			new LuaField("OnBecameVisibleProxy", get_OnBecameVisibleProxy, set_OnBecameVisibleProxy),
			new LuaField("OnBecameInvisibleProxy", get_OnBecameInvisibleProxy, set_OnBecameInvisibleProxy),
			new LuaField("OnLevelWasLoadedProxy", get_OnLevelWasLoadedProxy, set_OnLevelWasLoadedProxy),
			new LuaField("OnEnableProxy", get_OnEnableProxy, set_OnEnableProxy),
			new LuaField("OnDisableProxy", get_OnDisableProxy, set_OnDisableProxy),
			new LuaField("OnDestroyProxy", get_OnDestroyProxy, set_OnDestroyProxy),
			new LuaField("OnPreCullProxy", get_OnPreCullProxy, set_OnPreCullProxy),
			new LuaField("OnPreRenderProxy", get_OnPreRenderProxy, set_OnPreRenderProxy),
			new LuaField("OnPostRenderProxy", get_OnPostRenderProxy, set_OnPostRenderProxy),
			new LuaField("OnRenderObjectProxy", get_OnRenderObjectProxy, set_OnRenderObjectProxy),
			new LuaField("OnWillRenderObjectProxy", get_OnWillRenderObjectProxy, set_OnWillRenderObjectProxy),
			new LuaField("OnGUIProxy", get_OnGUIProxy, set_OnGUIProxy),
			new LuaField("OnDrawGizmosSelectedProxy", get_OnDrawGizmosSelectedProxy, set_OnDrawGizmosSelectedProxy),
			new LuaField("OnDrawGizmosProxy", get_OnDrawGizmosProxy, set_OnDrawGizmosProxy),
			new LuaField("OnApplicationPauseProxy", get_OnApplicationPauseProxy, set_OnApplicationPauseProxy),
			new LuaField("OnApplicationFocusProxy", get_OnApplicationFocusProxy, set_OnApplicationFocusProxy),
			new LuaField("OnApplicationQuitProxy", get_OnApplicationQuitProxy, set_OnApplicationQuitProxy),
			new LuaField("OnPlayerConnectedProxy", get_OnPlayerConnectedProxy, set_OnPlayerConnectedProxy),
			new LuaField("OnServerInitializedProxy", get_OnServerInitializedProxy, set_OnServerInitializedProxy),
			new LuaField("OnConnectedToServerProxy", get_OnConnectedToServerProxy, set_OnConnectedToServerProxy),
			new LuaField("OnPlayerDisconnectedProxy", get_OnPlayerDisconnectedProxy, set_OnPlayerDisconnectedProxy),
			new LuaField("OnDisconnectedFromServerProxy", get_OnDisconnectedFromServerProxy, set_OnDisconnectedFromServerProxy),
			new LuaField("OnFailedToConnectProxy", get_OnFailedToConnectProxy, set_OnFailedToConnectProxy),
			new LuaField("OnFailedToConnectToMasterServerProxy", get_OnFailedToConnectToMasterServerProxy, set_OnFailedToConnectToMasterServerProxy),
			new LuaField("OnMasterServerEventProxy", get_OnMasterServerEventProxy, set_OnMasterServerEventProxy),
		};

		LuaScriptMgr.RegisterLib(L, "LuaMonoBehaviour", typeof(LuaMonoBehaviour), regs, fields, typeof(MonoBehaviour));
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int _CreateLuaMonoBehaviour(IntPtr L)
	{
		LuaDLL.luaL_error(L, "LuaMonoBehaviour class does not have a constructor function");
		return 0;
	}

	static Type classType = typeof(LuaMonoBehaviour);

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int GetClassType(IntPtr L)
	{
		LuaScriptMgr.Push(L, classType);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_StartProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name StartProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index StartProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.StartProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_AwakeProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name AwakeProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index AwakeProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.AwakeProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_UpdateProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name UpdateProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index UpdateProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.UpdateProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_LateUpdateProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name LateUpdateProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index LateUpdateProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.LateUpdateProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_FixedUpdateProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name FixedUpdateProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index FixedUpdateProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.FixedUpdateProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_ResetProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name ResetProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index ResetProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.ResetProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnMouseEnterProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseEnterProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseEnterProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnMouseEnterProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnMouseOverProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseOverProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseOverProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnMouseOverProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnMouseExitProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseExitProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseExitProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnMouseExitProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnMouseDownProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseDownProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseDownProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnMouseDownProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnMouseUpProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseUpProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseUpProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnMouseUpProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnMouseUpAsButtonProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseUpAsButtonProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseUpAsButtonProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnMouseUpAsButtonProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnMouseDragProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseDragProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseDragProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnMouseDragProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnTriggerEnterProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnTriggerEnterProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnTriggerEnterProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnTriggerEnterProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnTriggerExitProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnTriggerExitProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnTriggerExitProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnTriggerExitProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnTriggerStayProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnTriggerStayProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnTriggerStayProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnTriggerStayProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnCollisionEnterProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnCollisionEnterProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnCollisionEnterProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnCollisionEnterProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnCollisionExitProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnCollisionExitProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnCollisionExitProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnCollisionExitProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnCollisionStayProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnCollisionStayProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnCollisionStayProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnCollisionStayProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnControllerColliderHitProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnControllerColliderHitProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnControllerColliderHitProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnControllerColliderHitProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnJointBreakProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnJointBreakProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnJointBreakProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnJointBreakProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnParticleCollisionProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnParticleCollisionProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnParticleCollisionProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnParticleCollisionProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnBecameVisibleProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnBecameVisibleProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnBecameVisibleProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnBecameVisibleProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnBecameInvisibleProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnBecameInvisibleProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnBecameInvisibleProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnBecameInvisibleProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnLevelWasLoadedProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnLevelWasLoadedProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnLevelWasLoadedProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnLevelWasLoadedProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnEnableProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnEnableProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnEnableProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnEnableProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnDisableProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnDisableProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnDisableProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnDisableProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnDestroyProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnDestroyProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnDestroyProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnDestroyProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnPreCullProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnPreCullProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnPreCullProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnPreCullProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnPreRenderProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnPreRenderProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnPreRenderProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnPreRenderProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnPostRenderProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnPostRenderProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnPostRenderProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnPostRenderProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnRenderObjectProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnRenderObjectProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnRenderObjectProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnRenderObjectProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnWillRenderObjectProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnWillRenderObjectProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnWillRenderObjectProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnWillRenderObjectProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnGUIProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnGUIProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnGUIProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnGUIProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnDrawGizmosSelectedProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnDrawGizmosSelectedProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnDrawGizmosSelectedProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnDrawGizmosSelectedProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnDrawGizmosProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnDrawGizmosProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnDrawGizmosProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnDrawGizmosProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnApplicationPauseProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnApplicationPauseProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnApplicationPauseProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnApplicationPauseProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnApplicationFocusProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnApplicationFocusProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnApplicationFocusProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnApplicationFocusProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnApplicationQuitProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnApplicationQuitProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnApplicationQuitProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnApplicationQuitProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnPlayerConnectedProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnPlayerConnectedProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnPlayerConnectedProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnPlayerConnectedProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnServerInitializedProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnServerInitializedProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnServerInitializedProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnServerInitializedProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnConnectedToServerProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnConnectedToServerProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnConnectedToServerProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnConnectedToServerProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnPlayerDisconnectedProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnPlayerDisconnectedProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnPlayerDisconnectedProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnPlayerDisconnectedProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnDisconnectedFromServerProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnDisconnectedFromServerProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnDisconnectedFromServerProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnDisconnectedFromServerProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnFailedToConnectProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnFailedToConnectProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnFailedToConnectProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnFailedToConnectProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnFailedToConnectToMasterServerProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnFailedToConnectToMasterServerProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnFailedToConnectToMasterServerProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnFailedToConnectToMasterServerProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int get_OnMasterServerEventProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMasterServerEventProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMasterServerEventProxy on a nil value");
			}
		}

		LuaScriptMgr.Push(L, obj.OnMasterServerEventProxy);
		return 1;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_StartProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name StartProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index StartProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.StartProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.StartProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_AwakeProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name AwakeProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index AwakeProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.AwakeProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.AwakeProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_UpdateProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name UpdateProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index UpdateProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.UpdateProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.UpdateProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_LateUpdateProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name LateUpdateProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index LateUpdateProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.LateUpdateProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.LateUpdateProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_FixedUpdateProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name FixedUpdateProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index FixedUpdateProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.FixedUpdateProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.FixedUpdateProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_ResetProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name ResetProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index ResetProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.ResetProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.ResetProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnMouseEnterProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseEnterProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseEnterProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnMouseEnterProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnMouseEnterProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnMouseOverProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseOverProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseOverProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnMouseOverProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnMouseOverProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnMouseExitProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseExitProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseExitProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnMouseExitProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnMouseExitProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnMouseDownProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseDownProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseDownProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnMouseDownProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnMouseDownProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnMouseUpProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseUpProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseUpProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnMouseUpProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnMouseUpProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnMouseUpAsButtonProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseUpAsButtonProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseUpAsButtonProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnMouseUpAsButtonProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnMouseUpAsButtonProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnMouseDragProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMouseDragProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMouseDragProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnMouseDragProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnMouseDragProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnTriggerEnterProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnTriggerEnterProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnTriggerEnterProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnTriggerEnterProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnTriggerEnterProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnTriggerExitProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnTriggerExitProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnTriggerExitProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnTriggerExitProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnTriggerExitProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnTriggerStayProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnTriggerStayProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnTriggerStayProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnTriggerStayProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnTriggerStayProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnCollisionEnterProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnCollisionEnterProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnCollisionEnterProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnCollisionEnterProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnCollisionEnterProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnCollisionExitProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnCollisionExitProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnCollisionExitProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnCollisionExitProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnCollisionExitProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnCollisionStayProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnCollisionStayProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnCollisionStayProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnCollisionStayProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnCollisionStayProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnControllerColliderHitProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnControllerColliderHitProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnControllerColliderHitProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnControllerColliderHitProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnControllerColliderHitProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnJointBreakProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnJointBreakProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnJointBreakProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnJointBreakProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnJointBreakProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnParticleCollisionProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnParticleCollisionProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnParticleCollisionProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnParticleCollisionProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnParticleCollisionProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnBecameVisibleProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnBecameVisibleProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnBecameVisibleProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnBecameVisibleProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnBecameVisibleProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnBecameInvisibleProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnBecameInvisibleProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnBecameInvisibleProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnBecameInvisibleProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnBecameInvisibleProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnLevelWasLoadedProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnLevelWasLoadedProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnLevelWasLoadedProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnLevelWasLoadedProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnLevelWasLoadedProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnEnableProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnEnableProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnEnableProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnEnableProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnEnableProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnDisableProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnDisableProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnDisableProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnDisableProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnDisableProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnDestroyProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnDestroyProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnDestroyProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnDestroyProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnDestroyProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnPreCullProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnPreCullProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnPreCullProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnPreCullProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnPreCullProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnPreRenderProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnPreRenderProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnPreRenderProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnPreRenderProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnPreRenderProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnPostRenderProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnPostRenderProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnPostRenderProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnPostRenderProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnPostRenderProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnRenderObjectProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnRenderObjectProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnRenderObjectProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnRenderObjectProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnRenderObjectProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnWillRenderObjectProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnWillRenderObjectProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnWillRenderObjectProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnWillRenderObjectProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnWillRenderObjectProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnGUIProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnGUIProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnGUIProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnGUIProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnGUIProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnDrawGizmosSelectedProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnDrawGizmosSelectedProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnDrawGizmosSelectedProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnDrawGizmosSelectedProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnDrawGizmosSelectedProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnDrawGizmosProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnDrawGizmosProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnDrawGizmosProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnDrawGizmosProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnDrawGizmosProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnApplicationPauseProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnApplicationPauseProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnApplicationPauseProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnApplicationPauseProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnApplicationPauseProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnApplicationFocusProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnApplicationFocusProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnApplicationFocusProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnApplicationFocusProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnApplicationFocusProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnApplicationQuitProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnApplicationQuitProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnApplicationQuitProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnApplicationQuitProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnApplicationQuitProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnPlayerConnectedProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnPlayerConnectedProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnPlayerConnectedProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnPlayerConnectedProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnPlayerConnectedProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnServerInitializedProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnServerInitializedProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnServerInitializedProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnServerInitializedProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnServerInitializedProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnConnectedToServerProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnConnectedToServerProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnConnectedToServerProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnConnectedToServerProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnConnectedToServerProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnPlayerDisconnectedProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnPlayerDisconnectedProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnPlayerDisconnectedProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnPlayerDisconnectedProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnPlayerDisconnectedProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnDisconnectedFromServerProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnDisconnectedFromServerProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnDisconnectedFromServerProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnDisconnectedFromServerProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnDisconnectedFromServerProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnFailedToConnectProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnFailedToConnectProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnFailedToConnectProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnFailedToConnectProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnFailedToConnectProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnFailedToConnectToMasterServerProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnFailedToConnectToMasterServerProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnFailedToConnectToMasterServerProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnFailedToConnectToMasterServerProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnFailedToConnectToMasterServerProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int set_OnMasterServerEventProxy(IntPtr L)
	{
		object o = LuaScriptMgr.GetLuaObject(L, 1);
		LuaMonoBehaviour obj = (LuaMonoBehaviour)o;

		if (obj == null)
		{
			LuaTypes types = LuaDLL.lua_type(L, 1);

			if (types == LuaTypes.LUA_TTABLE)
			{
				LuaDLL.luaL_error(L, "unknown member name OnMasterServerEventProxy");
			}
			else
			{
				LuaDLL.luaL_error(L, "attempt to index OnMasterServerEventProxy on a nil value");
			}
		}

		LuaTypes funcType = LuaDLL.lua_type(L, 3);

		if (funcType != LuaTypes.LUA_TFUNCTION)
		{
			obj.OnMasterServerEventProxy = (Action<GameObject>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action<GameObject>));
		}
		else
		{
			LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
			obj.OnMasterServerEventProxy = (param0) =>
			{
				int top = func.BeginPCall();
				LuaScriptMgr.Push(L, param0);
				func.PCall(top, 1);
				func.EndPCall(top);
			};
		}
		return 0;
	}

	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static int Lua_Eq(IntPtr L)
	{
		LuaScriptMgr.CheckArgsCount(L, 2);
		Object arg0 = LuaScriptMgr.GetLuaObject(L, 1) as Object;
		Object arg1 = LuaScriptMgr.GetLuaObject(L, 2) as Object;
		bool o = arg0 == arg1;
		LuaScriptMgr.Push(L, o);
		return 1;
	}
}

